home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / clang / dflat2.zip / CLASSDEF.H < prev    next >
Text File  |  1991-03-15  |  968b  |  36 lines

  1. /* ---------------- classdef.h --------------- */
  2.  
  3. #ifndef CLASSDEF_H
  4. #define CLASSDEF_H
  5.  
  6. typedef struct classdefs {
  7.     CLASS class;                        /* window class      */
  8.     CLASS base;                         /* base window class */
  9.     char *fg,*bg,*sfg,*sbg,*ffg,*fbg;   /* colors            */
  10.     int (*wndproc)(struct window *,enum messages,PARAM,PARAM);
  11.     int attrib;
  12. } CLASSDEFS;
  13.  
  14. extern CLASSDEFS classdefs[];
  15.  
  16. #define SHADOW      0x0001
  17. #define MOVEABLE    0x0002
  18. #define SIZEABLE    0x0004
  19. #define HASMENUBAR  0x0008
  20. #define VSCROLLBAR  0x0010
  21. #define HSCROLLBAR  0x0020
  22. #define VISIBLE     0x0040
  23. #define SAVESELF    0x0080
  24. #define TITLEBAR    0x0100
  25. #define CONTROLBOX  0x0200
  26. #define MINMAXBOX   0x0400
  27. #define NOCLIP      0x0800
  28. #define READONLY    0x1000
  29. #define MULTILINE   0x2000
  30. #define HASBORDER   0x4000
  31.  
  32. int FindClass(CLASS);
  33. #define DerivedClass(class) (classdefs[FindClass(class)].base)
  34.  
  35. #endif
  36.